#ifndef CONFIG_H
#define CONFIG_H
#include <QtGlobal>
#include<QDebug>
#include<QTime>
const int Window_Height=600;
const int Window_Width=950;

const int Create_Zombie_Gap=5000;


//豌豆射手初始hp
const int Hp_PeaShooter = 30000;
//太阳花初始hp
const int Hp_SunFlower = 2000;
//坚果墙初始hp
const int Hp_NutWall = 300000;
//双发射手初始hp
const int HP_DoubleShooter =30000;


//普通僵尸基础生命
const int Hp_NormalZombie = 1;
//路障僵尸基础生命
const int Hp_BarricadesZombie = 2;
//读报僵尸基础生命
const int Hp_PaperZombie = 2;

//豌豆射手攻击gap
const int PeaShooter_Atkgap = 2000;
//产生阳光gap
const int SunFlower_Sungap = 20000;
//双发射手
const int TIME_GAP_DOUBLESHOOTER_ATTACK = 4;

const int NormalZombie_ATK=10;



const int NormalBullet_Mvgap=20;
const int NormalBullet_Speed=6;


const int Zombie_Mvgap=40;

struct Location{
    int x,y;
    Location(int xx,int yy){x=xx;y=yy;}
    Location(const Location& rhs){x=rhs.x;y=rhs.y;}
};



enum{
    None_t=0,
    PeaShooter_t=1,
    SunFlower_t=2,
    NutWall_t=3,
    HighNut_t=4,
    DoubleShooter_t=5,
    NormalZombie_t=11,
    BarricadesZombie_t=12,
    PaperZombie_t=13,

    Shop_t=30,

    Sun_t=40

};

enum{
    normal_t=0,
    ice_t=1,
    car_t=2
};


int GetMoney(int ttype);
int CurX(int x);
int CurY(int y);
int generateRandomNumber();


#endif // CONFIG_H
